<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../config.inc.php");

$_LangPath = "memcreditdata";

include_once(__Member_Path."/logincheck_nodb.php");
include_once(__Language_Path."/selectlanguage_member.php");

$fp = @file(__Membertemplate_Path."/mem_communication.html");
$fp = implode("", $fp);
$fp = setHTMLCharset($fp);
$fp = str_replace("{Account}", $_SESSION["Member_Info"] -> Account, $fp);
$fp = str_replace("{Name}", $_SESSION["Member_Info"] -> Name, $fp);
$fp = str_replace("{ShowEmail}", $_SESSION["Member_Info"] -> Email, $fp);
$fp = str_replace("{ShowSkypeAcc}", $_SESSION["Member_Info"] -> SkypeAcc, $fp);
$fp = str_replace("{ShowMSN}", $_SESSION["Member_Info"] -> MSN, $fp);
$fp = str_replace("{ShowQQNum}", $_SESSION["Member_Info"] -> QQNum, $fp);

$arrMPhone = explode("-", $_SESSION["Member_Info"] -> MPhone);
$fp = str_replace("{ShowMPhone}", $arrMPhone[1], $fp);

$strAreaOption = "";
foreach($_arrTelArea as $strArea => $strCountry){
	if($strArea == $arrMPhone[0]){
		$strAreaOption .= "<option value='".$strArea."' selected>".$strCountry."</option>";
	}else{
		$strAreaOption .= "<option value='".$strArea."'>".$strCountry."</option>";
	}
}
$fp = str_replace("{AreaOption}", $strAreaOption, $fp);

while(list($k, $v) = each($_strMemCreditData)){
	$fp = str_replace("{".$k."}", $v, $fp);
}

//輸出
WebOutputHTML($fp, 1);
?>